package iedcyt.acute.controller.listeners.document;

import iedcyt.acute.model.DocumentModel;
import iedcyt.acute.model.DocumentModel;
import iedcyt.acute.view.DocumentView;
import iedcyt.acute.view.DocumentView;

import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Listener;

public class AuthorsSelectionListener implements Listener {

	private DocumentModel _model;
	private DocumentView _view;
	
	public AuthorsSelectionListener(DocumentView view, DocumentModel model) {
		this._model = model;
		this._view = view;
	}
	
	public void handleEvent(Event event) {
		Integer idAu = _view.getSelectedAuthorID();
		_model.setSelected_IdAuthor(idAu);
	}
}
